@{
    ViewData["Title"] = "首页";
    Layout = "_Layout";
}

<div class="layui-container-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">
                    <h3>欢迎使用知识库问答系统</h3>
                </div>
                <div class="layui-card-body">
                    <div class="layui-row layui-col-space15">
                        <div class="layui-col-md6">
                            <div class="layui-card">
                                <div class="layui-card-header">
                                    <i class="fas fa-book"></i> 知识库管理
                                </div>
                                <div class="layui-card-body">
                                    <p>管理您的文档知识库，支持多种文件格式的上传和处理。</p>
                                    <a href="/Home/Knowledge" class="layui-btn layui-btn-primary">
                                        <i class="fas fa-arrow-right"></i> 进入管理
                                    </a>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-card">
                                <div class="layui-card-header">
                                    <i class="fas fa-comments"></i> 智能问答
                                </div>
                                <div class="layui-card-body">
                                    <p>基于知识库进行智能问答，快速获取您需要的信息。</p>
                                    <a href="/Home/Chat" class="layui-btn layui-btn-primary">
                                        <i class="fas fa-arrow-right"></i> 开始对话
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="layui-row layui-col-space15" style="margin-top: 15px;">
                        <div class="layui-col-md6">
                            <div class="layui-card">
                                <div class="layui-card-header">
                                    <i class="fas fa-cog"></i> 系统设置
                                </div>
                                <div class="layui-card-body">
                                    <p>配置系统参数，管理用户权限和系统偏好设置。</p>
                                    <a href="/Home/Settings" class="layui-btn layui-btn-primary">
                                        <i class="fas fa-arrow-right"></i> 系统设置
                                    </a>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-card">
                                <div class="layui-card-header">
                                    <i class="fas fa-chart-bar"></i> 系统统计
                                </div>
                                <div class="layui-card-body">
                                    <p>查看系统使用统计，了解知识库和问答的使用情况。</p>
                                    <div class="layui-progress layui-progress-big" lay-showpercent="true">
                                        <div class="layui-progress-bar" lay-percent="75%"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

@section Scripts {
    <script>
        layui.use(['element'], function(){
            var element = layui.element;
            
            // 初始化进度条
            element.render('progress');
        });
    </script>
} 